package online.longzipeng.cinemasys.dto.order;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import online.longzipeng.cinemasys.dto.session.SessionQueryResponseDTO;
import online.longzipeng.cinemasys.entity.Seat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author lzp
 * @date 2021/4/30 11:01
 * 订单详情返回
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailResponseDTO implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 外键-订单头id
     */
    private Long orderHeadId;

    /**
     * 外键-场次id
     */
    private SessionQueryResponseDTO session;

    /**
     * 外键_座位id
     */
    private Seat seat;

}
